//
//  JZPageContentView.h
//  eStudy(comprehensive)
//
//  Created by 飞猪 on 2018/10/26.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>
@class JZPageControllerConfig;
@class JZPageContentView;

NS_ASSUME_NONNULL_BEGIN

@protocol JZPageContentViewDelegate <NSObject>

- (void)pageContentView:(JZPageContentView *)pageContentView scrolledToIndex:(NSInteger)index;

@end


@interface JZPageContentView : UIView

@property (nonatomic, weak  ) id<JZPageContentViewDelegate> delegate;

- (instancetype)initWithFrame:(CGRect)frame
                       config:(JZPageControllerConfig *)config
              viewControllers:(NSArray<UIViewController *> *)controllers NS_DESIGNATED_INITIALIZER;

@end

NS_ASSUME_NONNULL_END
